#include<linux/kernel.h>
#include<linux/module.h>
#include<linux/sched.h>
#include<linux/sched/signal.h>
#include<linux/sched/task.h>

int init_module(void){
    struct task_struct *ts;
    
    printk(KERN_INFO "task_6\n");
    ts = &init_task;
    do{
        printk(KERN_INFO "THREAD info: %d, %s\n", ts->pid, ts->comm);
        ts = next_task(ts); 
    } while(ts != &init_task);
    return 0;
}

void cleanup_module(void){
    printk("task_6 end\n");
}
